-- GENERATED SPELL FOR [Ebon Blade Initiate] --


function spell0_32468(pUnit, Event) --@Death Coil,n/a--
pUnit:FullCastSpellOnTarget(59134,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32468', 557, 1)
end

function spell1_32468(pUnit, Event) --@Icy Touch,n/a--
pUnit:FullCastSpellOnTarget(59131,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32468', 20000, 1)
end

function spell2_32468(pUnit, Event) --@Plague Strike,n/a--
pUnit:FullCastSpellOnTarget(59133,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32468', 12000, 1)
end

function Sorts_32468(pUnit, Event)
local choix_sorts_32468 = math.random(0, 2)
if choix_sorts_32468 == 0 then
pUnit:RegisterEvent('spell0_32468', 1, 1)
end
if choix_sorts_32468 == 1 then
pUnit:RegisterEvent('spell1_32468', 1, 1)
end
if choix_sorts_32468 == 2 then
pUnit:RegisterEvent('spell2_32468', 1, 1)
end
end

function mob32468_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32468', math.random(1500, 3000), 1)
end

function mob32468_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32468_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32468_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32468, 1, 'mob32468_Action')
RegisterUnitEvent(32468, 2, 'mob32468_Leave')
RegisterUnitEvent(32468, 3, 'mob32468_Kill')
RegisterUnitEvent(32468, 4, 'mob32468_Die')
